package cn.regexp.auth.util;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * @author Regexpei
 * @date 2024/7/3 22:16
 * @description MD5 工具类
 */
public class MD5Util {

    public static String encode(String password, String salt) {
        return DigestUtils.md5Hex("" + salt.charAt(0) + salt.charAt(2) + password + salt.charAt(4) + salt.charAt(5));
    }

}
